package browser.filter;


public class FilterLeaf implements FilterElement 
{
	String leafName;
	String leafValue;
	boolean isLikeMode;
	boolean isInMode;
	
	/**
	 * 
	 * @param leafName nazwa jak w bazie!!
	 * @param leafValue wartosc
	 * @param isLikaMode jesli bedzie na true, to w zaptaniu bedzie uzyte LIKE
	 */
	public FilterLeaf(String leafName, String leafValue,boolean isLikaMode)
	{
		this(leafName,leafValue,isLikaMode,false);	
	}
	public FilterLeaf(String leafName, String leafValue,boolean isLikaMode,boolean isInMode)
	{		
		this.leafName = leafName;
		this.leafValue=leafValue;
		this.isLikeMode = isLikaMode;
		this.isInMode=isInMode;
	}
	public String getLeafName()
	{
		return leafName;
	}
	public String getLeafValue()
	{
		return leafValue;
	}
	public boolean isLikeode()
	{
		return isLikeMode;
	}
	public boolean isInMode()
	{
		return isInMode;
	}
}
